/**
 * Created by zhanglihe on 15/9/9.
 */
require.config(require_config);

define([
    'jquery',
    'common',
    'ready',
    'template',
    'collection',
    'model',
    'dialog'
], function ($, common, ready, template, Collection, Model, dialog) {

    var index = function () {
        this.init();
    };
    index.prototype = {
        init: function () {
            loading();
            this.event();
            this.fetch();
        },

        fetch: function () {
            var that = this;
            that.collection = new Collection({
                url: _global.url.api + 'site/subsidy',
                condition: {limit: 10, offset: 0},
                model: {},
                callback: function () {
                    loaded();
                }
            });
            that.collection.fetch();
        },

        event: function () {
            var _this = this;

        }
    };

    new index();

});